package tests;

import common.Utils;
import org.openqa.selenium.By;

public class AdvicePage extends Utils {
    public static String url = "http://127.0.0.1:58080/index.html";
    public AdvicePage() {
        super(url);
    }

    public void clickAdvice() {
        driver.findElement(By.cssSelector("body > div.page > header.navbar.navbar-expand-md.navbar-light.d-print-none > div > div > div:nth-child(2) > div > a")).click();
    }

    public void offcanvasEndLabel() {
        driver.findElement(By.cssSelector("#offcanvasEndLabel"));
    }

    public void index_div_message() {
        driver.findElement(By.cssSelector("#index_div_message"));
        driver.navigate().refresh();
    }
}
